package com.gxa.jjty.core.pojo;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.*;
import java.io.Serializable;


@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
public class Orderset implements Serializable {

  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @JsonIgnore
  @ApiModelProperty(hidden = true,value = "ID")
  private Long ordersetId;
  @NotNull(message = "不能为空")
  @DecimalMin(value = "1",message = "必须>=1的数字")
  @ApiModelProperty(value = "支付有效时间(分钟--整数)")
  private Integer payOvertime;
  @NotNull(message = "不能为空")
  @DecimalMin(value = "1",message = "必须>=1的数字")
  @ApiModelProperty(value = "分配订单有效时间(分钟--整数)")

  private Integer allotOvertime;
  @NotNull(message = "不能为空")
  @DecimalMin(value = "1",message = "必须>=1的数字")
  @ApiModelProperty(value = "自动评价时间(天--整数)")
  private Integer automaticPraise;
  @NotNull(message = "不能为空")
  @DecimalMin(value = "1",message = "必须>=1的数字")
  @ApiModelProperty(value = "退款审核有效时间(小时--整数)")
  private Integer refundOvertime;
  @NotNull(message = "不能为空")
  @DecimalMin(value = "1",message = "必须>=1的数字")
  @ApiModelProperty(value = "确认服务完成有效时间(小时--整数)")
  private Integer servefinishOvertime;

}
